<?php
date_default_timezone_set('America/Argentina/Cordoba');
ini_set("memory_limit","400M");
//var_dump(Yii::getLogger()->getLogs());exit;
$shortcutPath = dirname(__FILE__).'/protected/config/shortcut.php';
require_once($shortcutPath);

$environmentPath = dirname(__FILE__).'/protected/config/EnvironmentFactory.php';
require_once($environmentPath);
$env = EnvironmentFactory::getEnvironment();

if($env->getDebugMode())
{
	defined('YII_DEBUG') or define('YII_DEBUG',$env->getDebugMode());
	defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
	$yii=dirname(__FILE__).$env->getYiiPath();
}
else 
{
	// change the following paths if necessary
	$yii=dirname(__FILE__).$env->getYiiPath();
	defined('YII_DEBUG') or define('YII_DEBUG',$env->getDebugMode());
}

require_once($yii);


Yii::createWebApplication($env->getConfiguration())->run();

